//
//  RegisterViewController.m
//  SaveHearts
//
//  Created by Daehee Han on 6/26/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "RegisterViewController.h"

@implementation RegisterViewController

@synthesize    firstnameText;
@synthesize    lastnameText;
@synthesize    emailText;
@synthesize    passwordText;
@synthesize    repasswordText;
@synthesize    phoneText;


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (IBAction)backButtonPressed:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
    //[self.view removeFromSuperview];
    
}
- (IBAction)completeButtonPressed:(id)sender
{
    UIAlertView *alert = [[UIAlertView alloc]
                          initWithTitle:@"SendButton Clicked"
                          message:nil
                          delegate:self
                          cancelButtonTitle:@"Done"
                          otherButtonTitles:nil];
    [alert show];

    [self.navigationController popViewControllerAnimated:YES];
    //[self.view removeFromSuperview];
    
}

@end
